# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'rGuiLinearRegression.ui'
#
# Created: Tue Dec 13 00:58:22 2011
#      by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Regression(object):
    def setupUi(self, Regression):
        Regression.setObjectName("Regression")
        Regression.resize(800, 503)
        self.verticalLayout = QtGui.QVBoxLayout(Regression)
        self.verticalLayout.setObjectName("verticalLayout")
        self.regressionType = QtGui.QTabWidget(Regression)
        self.regressionType.setObjectName("regressionType")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.tab)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.groupBox = QtGui.QGroupBox(self.tab)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.independentVariable = QtGui.QComboBox(self.groupBox)
        self.independentVariable.setObjectName("independentVariable")
        self.verticalLayout_2.addWidget(self.independentVariable)
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.verticalLayout_2.addWidget(self.label)
        self.dependentVariable = QtGui.QComboBox(self.groupBox)
        self.dependentVariable.setObjectName("dependentVariable")
        self.verticalLayout_2.addWidget(self.dependentVariable)
        self.verticalLayout_4.addWidget(self.groupBox)
        self.label_3 = QtGui.QLabel(self.tab)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_4.addWidget(self.label_3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.betha0 = QtGui.QTableWidget(self.tab)
        self.betha0.setObjectName("betha0")
        self.betha0.setColumnCount(1)
        self.betha0.setRowCount(4)
        item = QtGui.QTableWidgetItem()
        self.betha0.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.betha0.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.betha0.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.betha0.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.betha0.setHorizontalHeaderItem(0, item)
        self.betha0.horizontalHeader().setStretchLastSection(True)
        self.betha0.verticalHeader().setCascadingSectionResizes(False)
        self.betha0.verticalHeader().setStretchLastSection(True)
        self.horizontalLayout_2.addWidget(self.betha0)
        self.betha1 = QtGui.QTableWidget(self.tab)
        self.betha1.setObjectName("betha1")
        self.betha1.setColumnCount(1)
        self.betha1.setRowCount(4)
        item = QtGui.QTableWidgetItem()
        self.betha1.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.betha1.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.betha1.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.betha1.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.betha1.setHorizontalHeaderItem(0, item)
        self.betha1.horizontalHeader().setStretchLastSection(True)
        self.betha1.verticalHeader().setCascadingSectionResizes(False)
        self.betha1.verticalHeader().setStretchLastSection(True)
        self.horizontalLayout_2.addWidget(self.betha1)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_4 = QtGui.QLabel(self.tab)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout.addWidget(self.label_4)
        self.rValue = QtGui.QLineEdit(self.tab)
        self.rValue.setReadOnly(True)
        self.rValue.setObjectName("rValue")
        self.horizontalLayout.addWidget(self.rValue)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.horizontalLayout_5.addLayout(self.verticalLayout_4)
        self.display = QtGui.QLabel(self.tab)
        self.display.setMinimumSize(QtCore.QSize(400, 400))
        self.display.setText("")
        self.display.setObjectName("display")
        self.horizontalLayout_5.addWidget(self.display)
        self.regressionType.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.groupBox_3 = QtGui.QGroupBox(self.tab_2)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.label_9 = QtGui.QLabel(self.groupBox_3)
        self.label_9.setObjectName("label_9")
        self.verticalLayout_5.addWidget(self.label_9)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.m_independent1 = QtGui.QComboBox(self.groupBox_3)
        self.m_independent1.setObjectName("m_independent1")
        self.horizontalLayout_8.addWidget(self.m_independent1)
        self.m_independent2 = QtGui.QComboBox(self.groupBox_3)
        self.m_independent2.setObjectName("m_independent2")
        self.horizontalLayout_8.addWidget(self.m_independent2)
        self.verticalLayout_5.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_9.addLayout(self.verticalLayout_5)
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.label_10 = QtGui.QLabel(self.groupBox_3)
        self.label_10.setObjectName("label_10")
        self.verticalLayout_7.addWidget(self.label_10)
        self.m_dependent = QtGui.QComboBox(self.groupBox_3)
        self.m_dependent.setObjectName("m_dependent")
        self.verticalLayout_7.addWidget(self.m_dependent)
        self.horizontalLayout_9.addLayout(self.verticalLayout_7)
        self.verticalLayout_6.addWidget(self.groupBox_3)
        self.label_11 = QtGui.QLabel(self.tab_2)
        self.label_11.setObjectName("label_11")
        self.verticalLayout_6.addWidget(self.label_11)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.m_betha0 = QtGui.QTableWidget(self.tab_2)
        self.m_betha0.setObjectName("m_betha0")
        self.m_betha0.setColumnCount(1)
        self.m_betha0.setRowCount(4)
        item = QtGui.QTableWidgetItem()
        self.m_betha0.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha0.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha0.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha0.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha0.setHorizontalHeaderItem(0, item)
        self.m_betha0.horizontalHeader().setStretchLastSection(True)
        self.m_betha0.verticalHeader().setCascadingSectionResizes(False)
        self.m_betha0.verticalHeader().setHighlightSections(True)
        self.m_betha0.verticalHeader().setStretchLastSection(False)
        self.horizontalLayout_6.addWidget(self.m_betha0)
        self.m_betha1 = QtGui.QTableWidget(self.tab_2)
        self.m_betha1.setObjectName("m_betha1")
        self.m_betha1.setColumnCount(1)
        self.m_betha1.setRowCount(4)
        item = QtGui.QTableWidgetItem()
        self.m_betha1.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha1.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha1.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha1.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha1.setHorizontalHeaderItem(0, item)
        self.m_betha1.horizontalHeader().setStretchLastSection(True)
        self.m_betha1.verticalHeader().setCascadingSectionResizes(False)
        self.m_betha1.verticalHeader().setStretchLastSection(False)
        self.horizontalLayout_6.addWidget(self.m_betha1)
        self.m_betha2 = QtGui.QTableWidget(self.tab_2)
        self.m_betha2.setObjectName("m_betha2")
        self.m_betha2.setColumnCount(1)
        self.m_betha2.setRowCount(4)
        item = QtGui.QTableWidgetItem()
        self.m_betha2.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha2.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha2.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha2.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.m_betha2.setHorizontalHeaderItem(0, item)
        self.m_betha2.horizontalHeader().setStretchLastSection(True)
        self.m_betha2.verticalHeader().setCascadingSectionResizes(False)
        self.m_betha2.verticalHeader().setStretchLastSection(False)
        self.horizontalLayout_6.addWidget(self.m_betha2)
        self.verticalLayout_6.addLayout(self.horizontalLayout_6)
        spacerItem = QtGui.QSpacerItem(20, 110, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_12 = QtGui.QLabel(self.tab_2)
        self.label_12.setObjectName("label_12")
        self.horizontalLayout_7.addWidget(self.label_12)
        self.m_rValue = QtGui.QLineEdit(self.tab_2)
        self.m_rValue.setReadOnly(True)
        self.m_rValue.setObjectName("m_rValue")
        self.horizontalLayout_7.addWidget(self.m_rValue)
        self.verticalLayout_6.addLayout(self.horizontalLayout_7)
        self.regressionType.addTab(self.tab_2, "")
        self.verticalLayout.addWidget(self.regressionType)
        self.closeButton = QtGui.QPushButton(Regression)
        self.closeButton.setObjectName("closeButton")
        self.verticalLayout.addWidget(self.closeButton)

        self.retranslateUi(Regression)
        self.regressionType.setCurrentIndex(0)
        QtCore.QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), Regression.closeLinearRegression)
        QtCore.QObject.connect(self.dependentVariable, QtCore.SIGNAL("currentIndexChanged(int)"), Regression.plot)
        QtCore.QObject.connect(self.independentVariable, QtCore.SIGNAL("currentIndexChanged(int)"), Regression.plot)
        QtCore.QObject.connect(self.m_independent1, QtCore.SIGNAL("currentIndexChanged(int)"), Regression.multiReg)
        QtCore.QObject.connect(self.m_independent2, QtCore.SIGNAL("currentIndexChanged(int)"), Regression.multiReg)
        QtCore.QObject.connect(self.m_dependent, QtCore.SIGNAL("currentIndexChanged(int)"), Regression.multiReg)
        QtCore.QMetaObject.connectSlotsByName(Regression)

    def retranslateUi(self, Regression):
        Regression.setWindowTitle(QtGui.QApplication.translate("Regression", "Linear regression", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("Regression", "Variables", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("Regression", "Independent Variable", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("Regression", "Dependent Variable", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("Regression", "Model:", None, QtGui.QApplication.UnicodeUTF8))
        self.betha0.verticalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "ß0", None, QtGui.QApplication.UnicodeUTF8))
        self.betha0.verticalHeaderItem(1).setText(QtGui.QApplication.translate("Regression", "error", None, QtGui.QApplication.UnicodeUTF8))
        self.betha0.verticalHeaderItem(2).setText(QtGui.QApplication.translate("Regression", "t value", None, QtGui.QApplication.UnicodeUTF8))
        self.betha0.verticalHeaderItem(3).setText(QtGui.QApplication.translate("Regression", "P(> | t |)", None, QtGui.QApplication.UnicodeUTF8))
        self.betha0.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "Value", None, QtGui.QApplication.UnicodeUTF8))
        self.betha1.verticalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "ß1", None, QtGui.QApplication.UnicodeUTF8))
        self.betha1.verticalHeaderItem(1).setText(QtGui.QApplication.translate("Regression", "error", None, QtGui.QApplication.UnicodeUTF8))
        self.betha1.verticalHeaderItem(2).setText(QtGui.QApplication.translate("Regression", "t value", None, QtGui.QApplication.UnicodeUTF8))
        self.betha1.verticalHeaderItem(3).setText(QtGui.QApplication.translate("Regression", "P(> | t |)", None, QtGui.QApplication.UnicodeUTF8))
        self.betha1.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "Value", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("Regression", "Adjusted R-squared:", None, QtGui.QApplication.UnicodeUTF8))
        self.regressionType.setTabText(self.regressionType.indexOf(self.tab), QtGui.QApplication.translate("Regression", "Simple Regression", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("Regression", "Variables", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(QtGui.QApplication.translate("Regression", "Independent Variables", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(QtGui.QApplication.translate("Regression", "Dependent Variable", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(QtGui.QApplication.translate("Regression", "Model:", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha0.verticalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "ß0", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha0.verticalHeaderItem(1).setText(QtGui.QApplication.translate("Regression", "error", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha0.verticalHeaderItem(2).setText(QtGui.QApplication.translate("Regression", "t value", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha0.verticalHeaderItem(3).setText(QtGui.QApplication.translate("Regression", "P(> | t |)", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha0.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "Value", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha1.verticalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "ß1", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha1.verticalHeaderItem(1).setText(QtGui.QApplication.translate("Regression", "error", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha1.verticalHeaderItem(2).setText(QtGui.QApplication.translate("Regression", "t value", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha1.verticalHeaderItem(3).setText(QtGui.QApplication.translate("Regression", "P(> | t |)", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha1.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "Value", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha2.verticalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "ß2", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha2.verticalHeaderItem(1).setText(QtGui.QApplication.translate("Regression", "error", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha2.verticalHeaderItem(2).setText(QtGui.QApplication.translate("Regression", "t value", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha2.verticalHeaderItem(3).setText(QtGui.QApplication.translate("Regression", "P(> | t |)", None, QtGui.QApplication.UnicodeUTF8))
        self.m_betha2.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("Regression", "Value", None, QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(QtGui.QApplication.translate("Regression", "Adjusted R-squared:", None, QtGui.QApplication.UnicodeUTF8))
        self.regressionType.setTabText(self.regressionType.indexOf(self.tab_2), QtGui.QApplication.translate("Regression", "Multiple Regression", None, QtGui.QApplication.UnicodeUTF8))
        self.closeButton.setText(QtGui.QApplication.translate("Regression", "Close", None, QtGui.QApplication.UnicodeUTF8))

